// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-6-17

#ifndef __MAINBORDER_H_CLIENT_MAIN__
#define __MAINBORDER_H_CLIENT_MAIN__

#pragma once

#include <common\ui\wnd.h>

class CJoyMainWnd;

//##ModelId=44C4B5E101E4
class CJoyMainBorder : public CJoyWnd
{
	DECLARE_DYNAMIC(CJoyMainBorder)
protected:
	//##ModelId=44C4B5E101E7
    CJoyImagePtr    m_backImage;

    //virtual LRESULT OnHitTest(const CPoint& pt);
	//##ModelId=44C4B5E101F4
    virtual void CM_LoadSkin(CJoyXmlElement* pSkinElem);
	//##ModelId=44C4B5E101F7
    virtual void CM_Draw(Graphics& graph);
public:
	//##ModelId=44C4B5E101FA
    CJoyMainBorder(void);
	//##ModelId=44C4B5E10203
    ~CJoyMainBorder(void);

	//##ModelId=44C4B5E10205
    bool Create(CJoyWnd* mainWnd, const CRect& area, AlignType align);

public:
    DECLARE_MESSAGE_MAP()
	//##ModelId=44C4B5E10209
    afx_msg LRESULT OnNcHitTest(CPoint point);
};

#endif  // __MAINBORDER_H_CLIENT_MAIN__
